package initialize

import (
	"authserver/global"
	"authserver/model"
)

// 注册数据库表专用

func DBTables() {
	db := global.GVA_DB
    _ = db.AutoMigrate(
        model.AuthInfo{},
        model.SysVersion{},
        model.ParseLog{},
        model.SysConfig{},
        model.XyRecord{},
        model.ShortUrl{},
        model.BookAudio{},
        model.BookMenu{},
        model.InvoiceCheckInfo{},
    )
	global.GVA_LOG.Debug("register table success")
}
